Added Changelog and some pep8 in test files
authorJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 14 Jun 2018 21:56:18 +0000 (23:56 +0200)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Thu, 14 Jun 2018 21:56:18 +0000 (23:56 +0200)
ChangeLog-2.0.28 [new file with mode: 0644]
test/testing/testbase.py

diff --git a/ChangeLog-2.0.28 b/ChangeLog-2.0.28
new file mode 100644 (file)
index 0000000..eb5e32c
--- /dev/null
@@ -0,0 +1 @@
+  * Added filter options nan, inf and -inf for float series. 
\ No newline at end of file
index 93b2976ac4f5eeefa86b4dee97b513dd0aca497b..9efcbaf5be0535a8fe79f0b3f32314935ce8d6c9 100644 (file)
@@ -93,12 +93,12 @@ class TestBase(unittest.TestCase):
                     .format(len(s.points), length, s.name)
 
         n = min(len(series), 10)
-        l = list(d.keys())
-        random.shuffle(l)
+        li = list(d.keys())
+        random.shuffle(li)
         for i in range(n):
-            result = await client.query('select * from "{}"'.format(l[i]))
-            points = result[l[i]]
-            expected = sorted(d[l[i]])
+            result = await client.query('select * from "{}"'.format(li[i]))
+            points = result[li[i]]
+            expected = sorted(d[li[i]])
             assert len(points) == len(expected), \
                 'incorrect number of points: {}, expected: {}'.format(
                     len(points), len(expected))
@@ -128,6 +128,3 @@ class TestBase(unittest.TestCase):
                             **kwargs)
         else:
             super().assertAlmostEqual(a, b, *args, **kwargs)
-
-
-